﻿using RockBus.Logging.Interfaces;
using System;
using System.Reflection;

namespace RockBus.Hosting
{
    public class StaticServiceHost<TServiceType> : RockBusServiceHost
    {
        public StaticServiceHost(ILogger logger, params Uri[] baseAddresses)
            : base(logger, typeof(TServiceType), baseAddresses)
        {
            this.Logger.LogInfo(MethodBase.GetCurrentMethod(), "Creating StaticServiceHost for type: {0}", typeof(TServiceType).Name);
            this.Description.ClearDynamicEndpoints();
        }
    }
}